#ifndef _SAMPLEDEC_H
#define _SAMPLEDEC_H

#include <semaphore.h>

/*The frame size in hardcoded for this sample code but it doesn't have to be*/
#define FRAME_SIZE 160

//缓冲区个数
#define BUFFER_COUNT 10000

//解码线程个数上限
#define MAX_DECODE_THREAD_COUNT 10

typedef struct tagPCMBuffer *pPCMBuffer, PCMBuffer;

struct tagPCMBuffer
{
	int a;
    short out[FRAME_SIZE];
    pPCMBuffer next;
};

//extern pPCMBuffer getLinkHeader[MAX_DECODE_THREAD_COUNT];//定义读指针
//extern pPCMBuffer putLinkHeader[MAX_DECODE_THREAD_COUNT];//定义写指针
//extern int validBufferCount[MAX_DECODE_THREAD_COUNT];//缓冲区个数
#endif
